import request from '@/utils/request'

// 查询教学成果奖列表
export function listAchievements(query) {
  return request({
    url: '/achievements/achievements/list',
    method: 'get',
    params: query
  })
}

// 查询教学成果奖详细
export function getAchievements(teachId) {
  return request({
    url: '/achievements/achievements/' + teachId,
    method: 'get'
  })
}

// 新增教学成果奖
export function addAchievements(data) {
  return request({
    url: '/achievements/achievements',
    method: 'post',
    data: data
  })
}

// 修改教学成果奖
export function updateAchievements(data) {
  return request({
    url: '/achievements/achievements',
    method: 'put',
    data: data
  })
}

// 删除教学成果奖
export function delAchievements(teachId) {
  return request({
    url: '/achievements/achievements/' + teachId,
    method: 'delete'
  })
}
